#pragma once
#include <string>
#include <iostream>

class HighScoreData
{
private:
	std::string name;
	int score;
public:
	HighScoreData();
	~HighScoreData();
	HighScoreData(std::string name, int score);
	
	std::string getName(){ return this->name; }
	int getScore(){ return this->score; }
	void setName(std::string name){ this->name = name; }
	void setScore(int score){ this->score = score; }

	void print(){ std::cout << name << " :: " << score << std::endl; }

	friend std::ostream &operator<<(std::ostream &, const HighScoreData &);
	friend std::istream &operator>>(std::istream &, HighScoreData &);

	friend bool operator<(const HighScoreData &l, const HighScoreData &r){ return l.score < r.score; }

};

